from django.urls import path,include

from backend.views.backLogin import backendlogin
from backend.views.course import course_info, course_add, course_del, course_edit, kid_course_add, kid_course_info, \
    kid_course_del, kid_course_edit
from backend.views.frontLogin import register, login, password_edit
from backend.views.match import match_add, match_info, match_del
from backend.views.studio import studio_info, studio_add, studio_group, studio_edit, studio_del, studio_members_info, \
    studio_members_add, studio_members_edit, studio_members_del
from backend.views.upload import video_upload, course_upload
from backend.views.userManage import user_info, user_del, user_edit
from backend.views.videoPlay import video_add, video_info, video_del

urlpatterns = [
    # 用户注册
    path('register/', register),
    # 用户登录
    path('login/', login),
    # 忘记密码
    path('password/edit/', password_edit),
    # 后台用户登录
    path('backendlogin/', backendlogin),
    # 视频上传
    path('video/upload/', video_upload),
    # 课程信息
    path('course/info/', course_info),
    # 课程新增
    path('course/add/', course_add),
    # 封面上传
    path('course/upload/', course_upload),
    # 课程删除
    path('course/del/', course_del),
    # 课程编辑
    path('course/edit/', course_edit),
    # 用户信息
    path('user/info/', user_info),
    # 用户删除
    path('user/del/', user_del),
    # 用户编辑
    path('user/edit/', user_edit),
    # 少儿课程新增
    path('kidcourse/add/', kid_course_add),
    # 少儿课程信息
    path('kidcourse/info/', kid_course_info),
    # 少儿课程删除
    path('kidcourse/del/', kid_course_del),
    # 少儿课程编辑
    path('kidcourse/edit/', kid_course_edit),
    # 视频新增
    path('video/add/', video_add),
    # 视频信息
    path('video/info/', video_info),
    # 视频删除
    path('video/del/', video_del),
    # 工作室信息
    path('studio/info/', studio_info),
    # 工作室分组信息
    path('studio/group/', studio_group),
    # 工作室新增
    path('studio/add/', studio_add),
    # 工作室编辑
    path('studio/edit/', studio_edit),
    # 工作室删除
    path('studio/del/', studio_del),
    # 工作室成员信息
    path('studio/members/info/', studio_members_info),
    # 工作室成员新增
    path('studio/members/add/', studio_members_add),
    # 工作室成员编辑
    path('studio/members/edit', studio_members_edit),
    # 工作室成员删除
    path('studio/members/del', studio_members_del),
    # 赛事新增
    path('match/add/', match_add),
    # 赛事查询
    path('match/info/', match_info),
    # 赛事删除
    path('match/del/', match_del),
]
